package com.wd.live

import android.app.Application
import com.amap.api.location.AMapLocationClient
import com.bw.base.net.retrofit.RetrofitConfig
import com.wd.live.tool.LocalData
import com.wd.live.tool.getLoginInfo
import com.wd.live.tool.getSessionId
import com.wd.live.tool.getUserId

/**
 *@Author Nick.wu
 *Date 2023/8/15
 */
class MyApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        RetrofitConfig.baseUrl("http://10.59.9.18/")
        val postInfo = mutableMapOf<Any, Any>()
//        postInfo["ak"] = "011"
//        postInfo["sessionId"] = "1660188914495118"
//        postInfo["userId"] = 118
        postInfo["Content-Type"] = "application/x-www-form-urlencoded"
        RetrofitConfig.postInfo(postInfo)
        AMapLocationClient.updatePrivacyShow(this, true, true);
        AMapLocationClient.updatePrivacyAgree(this, true);

        BaseConstant.userId = getUserId()
        BaseConstant.sessionId = getSessionId()

    }
}